﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Request.aspx.cs" Inherits="SWEN_HMS.BookingModule.Request" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style2
        {
            font-family: Arial, Helvetica, sans-serif;
            font-size: 15px;
            padding: 2px;
            color: #000000;
        }
        .auto-style3
        {
            width: 100%;
        }
        .auto-style8
        {
            height: 21px;
        }
        .auto-style15
        {
            width: 99px;
            height: 21px;
        }
        .auto-style29
        {
            width: 95px;
        }
        .auto-style31
        {
            width: 99px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" runat="server" contentplaceholderid="ContentPlaceHolder1">
        <asp:Panel ID="Panel1" runat="server" CssClass="auto-style2">
            <table class="auto-style3">
                <tr>
                    <td class="auto-style29">&nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="auto-style29">Room No:</td>
                    <td>
                        <asp:Label ID="Label1" runat="server" Font-Bold="True" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style29">Request Type:</td>
                    <td>
                        <asp:DropDownList ID="requestType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="requestType_SelectedIndexChanged" style="height: 22px">
                            <asp:ListItem>Select Option</asp:ListItem>
                            <asp:ListItem>Cleaning</asp:ListItem>
                            <asp:ListItem>Room Service</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style29">Category:</td>
                    <td>
                        <asp:DropDownList ID="category" runat="server" AutoPostBack="True" Enabled="False" OnSelectedIndexChanged="category_SelectedIndexChanged">
                            <asp:ListItem>Select Option</asp:ListItem>
                            <asp:ListItem>Food</asp:ListItem>
                            <asp:ListItem>Drink</asp:ListItem>
                        </asp:DropDownList>
                        <asp:Label ID="caterror" runat="server" Font-Size="10pt" ForeColor="Red" Text="Label" Visible="False"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style8" colspan="2"></td>
                </tr>
                <tr>
                    <td class="auto-style8" colspan="2">
                        <asp:Panel ID="Panel2" runat="server" Visible="False">
                            <strong>
                            <asp:Label ID="Label2" runat="server" Text="Room Service"></asp:Label>
                            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SWENdbConnectionString %>" SelectCommand="SELECT [itemID], [itemName], [itemDescription], [unitPrice] FROM [Item]"></asp:SqlDataSource>
                            </strong>
                            <table class="auto-style3">
                                <tr>
                                    <td class="auto-style31">Item:<br />
                                        <br />
                                        <br />
                                        <br />
                                        <br />
                                        <br />
                                    </td>
                                    <td>
                                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" Visible="False" DataKeyNames="itemID">
                                            <Columns>
                                                <asp:CommandField ShowSelectButton="True" />
                                                <asp:BoundField DataField="itemID" HeaderText="itemID" SortExpression="itemID" ReadOnly="True" />
                                                <asp:BoundField DataField="itemName" HeaderText="itemName" SortExpression="itemName" />
                                                <asp:BoundField DataField="itemDescription" HeaderText="itemDescription" SortExpression="itemDescription" />
                                                <asp:BoundField DataField="unitPrice" HeaderText="unitPrice" SortExpression="unitPrice" />
                                            </Columns>
                                        </asp:GridView>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="auto-style15">Selected Item:</td>
                                    <td class="auto-style8">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="auto-style15">Item ID:</td>
                                    <td class="auto-style8">
                                        <asp:Label ID="itemID" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="auto-style15">Name:</td>
                                    <td class="auto-style8">
                                        <asp:Label ID="sItem" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="auto-style15">Description: </td>
                                    <td class="auto-style8">
                                        <asp:Label ID="desc" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="auto-style31">Unit Price</td>
                                    <td>
                                        <asp:Label ID="unitPrice" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="auto-style31">Quantity:</td>
                                    <td>
                                        <asp:TextBox ID="quantity" runat="server" Enabled="False" TextMode="Number" Width="35px"></asp:TextBox>
                                        <ajaxToolkit:FilteredTextBoxExtender ID="quantity_FilteredTextBoxExtender" runat="server" FilterType="Numbers" TargetControlID="quantity">
                                        </ajaxToolkit:FilteredTextBoxExtender>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="quantity" ErrorMessage="Please enter quantity" Font-Size="10pt" ForeColor="Red"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </td>
                </tr>
            </table>
            <br />
            <asp:Button ID="confirm" runat="server" CssClass="btnCSS" Text="Confirm" OnClick="confirm_Click" />
            <br />
            <br />
            <br />
            <br />
            &nbsp;&nbsp;<br />
        </asp:Panel>
    </asp:Content>
<asp:Content ID="Content3" runat="server" contentplaceholderid="pageTitlePHolder">
    <span class="auto-style1" style="color: #000000">Request</span><asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
&nbsp;
</asp:Content>

